import request from '@/utils/request'

export function getGoodsServerList (params:any) {
    return request({
        url: 'store.goodsServer/list',
        method: 'GET',
        params
    })
}

export function getGoodsServerSelect() {
    return request({
        url: 'store.goodsServer/select',
        method: 'GET'
    })
}

export function createGoodsServer (data:any) {
    return request({
        url: 'store.goodsServer/create',
        method: 'POST',
        data
    })
}
export function updateGoodsServer (data:any) {
    return request({
        url: `store.goodsServer/update`,
        method: 'PUT',
        data
    })
}
export function updateStatusGoodsServer (data:{id:number|string,status:number|string}) {
    return request({
        url: `store.goodsServer/status`,
        method: 'PUT',
        data
    })
}

export function delGoodsServer (data:{id:number|string}) {
    return request({
        url: `store.goodsServer/delete`,
        method: 'DELETE',
        data
    })
}

export function getGoodsServerDetail (params:{id:number|string}) {
    return request({
        url: `store.goodsServer/detail`,
        method: 'GET',
        params
    })
}